FROM docker.ketches.cn/python:3.10-slim-bullseye
MAINTAINER summer
USER root

COPY requirements.txt /tmp/requirements.txt

RUN pip install --upgrade pip && pip install --no-cache-dir -r /tmp/requirements.txt -i https://mirrors.aliyun.com/pypi/simple \
 && mkdir -p /var/data

WORKDIR /code

COPY *.py .

CMD ["python", "scheduler.py"]
